/* You can add global styles to this file, and also import other style files */
//@import '~@angular/material/prebuilt-themes/indigo-pink.css';
// @import '~@angular/material/prebuilt-themes/deeppurple-amber.css';
// @import '~@swimlane/ngx-datatable/release/index.css';
// @import '~@swimlane/ngx-datatable/release/themes/material.css';
// @import '~@swimlane/ngx-datatable/release/assets/icons.css';

//add ngx-datatable style
.datatable-body-row{
  border-bottom: 1px solid #eeeeee;
}

//detail 組件的樣式
.detail-view-container {
  position: relative;
  height: calc(100vh - 66px);
  overflow: auto;
  .container-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: #8847dc;
    z-index: 1;
  }

  .mat-card-avatar {
    line-height: 40px;
    text-align: center;
    color: #fff;
    background: #ccc;
    font-size: 24px;
  }

  .detail {
    position: relative;
    z-index: 2;
    padding: 0 32px;
    .header {
      flex-direction: row;
      box-sizing: border-box;
      display: flex;
      max-height: 100%;
      place-content: center flex-start;
      align-items: center;
      height: 136px;
      min-height: 136px;
      .back-arrow {
        margin-right: 22px;
      }
    }
    .header-text {
      margin: 0 8px;
      color: #ffffff;
      .header-name {
        font-size: 20px;
      }
      .header-detail {
        margin-top: 12px;
        max-width: 240px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
    .mat-card-avatar {
      float: left;
      margin-right: 5px;
    }
  }

  .detail-header {
    background: #8847dc;
    color: #fefefe;
    padding: 0 24px;
  }

  .detail-footer{
    margin-top: 27px;
    text-align: center;
  }
}
